package functionalEnrichment.semanticSimilarity.semanticSimilarityCalculator.utils;

import java.text.SimpleDateFormat;
import java.util.Calendar;

/**
 * This class contains any methods that pertain to time and date.
 * @author Jamie MacPherson
 */
public class DateUtils {

    /**
     * Returns the current date and time in the format: "yyyy-MM-dd HH:mm:ss"
     */
    public static String now() {
        Calendar cal = Calendar.getInstance();
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        return sdf.format(cal.getTime());

    }
}
